#ifndef TEACHINGDIALOG_H
#define TEACHINGDIALOG_H

#include <QDialog>

namespace Ui {
class TeachingDialog;
}

class TeachingDialog : public QDialog
{
    Q_OBJECT

public:
    explicit TeachingDialog(QWidget *parent = nullptr);
    ~TeachingDialog();

	void UpdateWidgets();

	
	typedef enum _LIGHT_TYPE {
		LIGHT_RED = 2,
		LIGHT_BLUE = 3,
		LIGHT_WHITE = 4,
		LIGHT_ASSIST = 1,
	}LIGHT_TYPE;
private:
    Ui::TeachingDialog *ui;
	void SerialPortRx();
	void GetLight(LIGHT_TYPE type);
	void SetLight(int light, LIGHT_TYPE type);
	void closeEvent(QCloseEvent *);
private slots:

	void SliderValueChanged();
	void EditTextChanged();
};

#endif // TEACHINGDIALOG_H
